<%@ page import="books4africa.BookRequest" %>

<div class="fieldcontain ${hasErrors(bean: bookRequestInstance, field: 'book', 'error')} required">
	<label for="book">
		<g:message code="bookRequest.book.label" default="Book" />
		<span class="required-indicator">*</span>
	</label>
	<g:select id="book" name="book.id" from="${books4africa.Books.list()}" optionKey="id" required="" value="${bookRequestInstance?.book?.id}" class="many-to-one"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bookRequestInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="bookRequest.description.label" default="Description" />
		
	</label>
	<g:textArea name="description" cols="40" rows="5" maxlength="1000" value="${bookRequestInstance?.description}"/>
</div>
<div class="fieldcontain ${hasErrors(bean: bookRequestInstance, field: 'bookQty', 'error')} required">
	<label for="bookQty">
		<g:message code="bookRequest.bookQty.label" default="Book Qty" />
		<span class="required-indicator">*</span>
	</label>
	<g:textField name="bookQty" required="" value="${fieldValue(bean: bookRequestInstance, field: 'bookQty')}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: bookRequestInstance, field: 'dateRequested', 'error')} required">
	<label for="dateRequested">
		<g:message code="bookRequest.dateRequested.label" default="Date Requested" />
		<span class="required-indicator">*</span>
	</label>
	<g:datePicker name="dateRequested" precision="day"  value="${bookRequestInstance?.dateRequested}"  />
</div>
